#include "junix.h"
#include <boost/compressed_pair.hpp>
using namespace std;

int main(int argc, char **argv)
{
	boost::compressed_pair<int,string> p(999,string("hello"));
	cout<<"size:"<<sizeof(p)<<endl;
	cout<<p.first()<<endl;
	cout<<p.second()<<endl<<endl;

	boost::compressed_pair<int,string> p2(string("world"));
	cout<<"size:"<<sizeof(p2)<<endl;
//	cout<<p2.first()<<endl;
	cout<<p2.second()<<endl<<endl;

	boost::compressed_pair<int,string> p3(8888);
	cout<<"size:"<<sizeof(p3)<<endl;
	cout<<p3.first()<<endl;
//	cout<<p3.second()<<endl<<endl;

	boost::compressed_pair<int,string> p4;
	cout<<"size:"<<sizeof(p4)<<endl;
}
